package p10;

/**
 * @author krystal
 * @date 2022/11/12 20:39
 */
public class Demo3 {
    public static void main(String[] args) {
        String s1="baekhyun";
        char ch=s1.charAt(2);
        System.out.println(ch);
        System.out.println("================");
        int index=s1.indexOf('a',1);
        System.out.println(index);
        System.out.println("================");
        int index1=s1.indexOf("ek");
        System.out.println(index1);
    }
}
